package com.dz.dao;

import com.dz.bean.DingDanBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface DingDanMapper {

    //查询t_order表中的所有数据；
    List<DingDanBean> queryOrderList();

    //修改订单中的数据；
    int updateByOrderNumber(DingDanBean danBean);

    //向表中添加几条数据；
    int insertOrder(DingDanBean danBean);

    //删除订单中的某条数据；
    int deleteByOrderNumber(@Param("orderNumber")String orderNumber);
}
